     formdata.append 'raw', photo.file
     formdata.append 'thumb', photo.thumb, "thumb_#{photo.file.name}"
     formdata.append 'screen', photo.screen, "screen_#{photo.file.name}"
+
     # need to call sync directly so we can change the data
     Backbone.sync 'create', photo,
         contentType: false # Prevent $.ajax from being smart

        photo.img.orientation = photo.attributes.orientation
        photo.img.onload = ->
            next()

# resize an image into given dimensions
# if fill, the image will be croped to fit in new dim


class PhotoProcessor

    # upload 2 by 2
    uploadQueue: async.queue uploadWorker, 2

