UPDATE: Mime type guessing for data URL helper