         sha1       : rtypes.string   # one of sha1 or value should be given
         value      : rtypes.string
         project_id : rtypes.string
+        width      : rtypes.number
+        height     : rtypes.number
 
     getInitialState: ->
         attempts : 0


    render_using_server: ->
        src = get_blob_url(@props.project_id, @extension(), @props.sha1) + "&attempts=#{@state.attempts}"
        return <img src={src} onError={@load_error}/>

    encoding: ->
        switch @props.type

                        type       = {type}
                        sha1       = {value if typeof(value) == 'string'}
                        value      = {value.get('value') if typeof(value) == 'object'}
                        width      = {@props.message.getIn(['metadata','width'])}
                        height     = {@props.message.getIn(['metadata','height'])}
                        />
                when 'application'
                    switch b
