$details = getimagesize($orig_image);
/* check if original photo is a support image type */
- if(!$this->parent->checkifImageSupported($details['mime']))
+ if(!$this->checkifImageSupported($details['mime']))
return false;
$meta = $this->get_meta_informations($orig_image);