Hi Terence,

Create the ImageFile based on mime type looks fine, I've extracted the parts for storing file and setting mimeType to a separate method.
I've also added a public method to getImageFile() as well.

Cheers
Shuang