App.ImageTagHelper = Ember.Helper.helper (params, options)->
  path = params[0]
  alt = options.alt || ''
  image_path = if path.substring(0,4) == 'http' then path else "#{$assets_path}#{path}"
  extra_attributes = ''
  extra_attributes += " width=\"#{options.width}\"" if options.width
  extra_attributes += " height=\"#{options.height}\"" if options.height
  "<img src=\"#{image_path}\" alt=\"#{alt}\" title=\"#{alt}\" #{extra_attributes}>".htmlSafe()
