test with jpeg image
store mimetype in db
size in thumbnail names on s3 - fixes #15