Switched thumbnail scaling from imagescale to imagecopyresampled