get_mimetype() is not used at all right now, is_image() is called by the method move_file() in the upload_attachment() function. We need a file to do the mimetype guessing.