No problem. Thanks for your help!!
/// up the image quality
$img_quality = 100;
} else {
$created = imagecopyresampled($thumb, $image, 0, 0, $move_w, $move_h, $w, $h, $th_w, $th_h);
}
//// cache images (if enabled)
$current_gallery = array_pop(split("/"...