Fix image mimetype for dataurl.