Add support for different image types by specifying MIME type