Add function to get the MIME type for supported image types in lib/siteinfo/image