Change image attachments format

It now can store multiple formats, with the original image file being
stored under `original`.