Fixing missing 'mime_type' variable.