Ember.Handlebars.helper 'image_tag', (path, options={})->
  alt = options.hash.alt || ''
  image_path = if path.substring(0,4) == 'http' then path else "#{$assets_path}#{path}"
  extra_attributes = ''
  extra_attributes += " width=\"#{options.hash.width}\"" if options.hash.width
  extra_attributes += " height=\"#{options.hash.height}\"" if options.hash.height
  new Handlebars.SafeString "<img src=\"#{image_path}\" alt=\"#{alt}\" title=\"#{alt}\" #{extra_attributes}>"
