// Adding new extension to end in case there isn't a file extension isn't present in file path
$fileExtensionRegExp = '/'.$path_parts["basename"].'$/';
if($options['imageFormat'] && $options['imageFormat'] !== ''){ // convert to a specific format
$imageOptions = split(':', $options['imageFormat']);
line 951 is the last one..... I have not edited the helperphp.php file at all