Properly retain the MIME type for images when importing