 
   # this includes a fallback for when the embedimageindex is out of bounds
   # it will however still request a nonsensical image src
-    @imageLink  = @getData().link_embed?.images?[@getData().link_embed_image_index]?.url or\
-                  @getData().link_embed?.images?[0]?.url or\
+    @imageLink  = proxifyUrl(@getData().link_embed?.images?[@getData().link_embed_image_index]?.url) or\
+                  proxifyUrl(@getData().link_embed?.images?[0]?.url) or\
                   "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" # hardcode a default
 
     @imageAltText = (@getData().link_embed?.title + \

    <div class="embed embed-image-view custom-image">

    <a href="#{@getData().link_url or "#"}" target="_blank">
    <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="#{@getData().link_embed?.images?[0]?.url or "http://koding.com/images/small-loader.gif"}" style="max-width:#{if @options.maxWidth? then @options.maxWidth+"px" else "560px"};max-height:#{if @options.maxHeight? then @options.maxHeight+"px" else "300px"}" title="#{@getData().link_embed?.title or ""}" />
    </a>
    </div>


proxifyUrl =(url)->
  "https://api.koding.com/1.0/image.php?url="+ encodeURIComponent(url)

class EmbedBoxLinksViewItem extends KDListItemView

  constructor:(options,data)->
