change the mimetype to be a property of the class prototype