Specify the MIME type of images when uploading them

It turns out that PopIt will return the images as
application/octet-stream unless you manually specify their MIME type.