resize() method contained by ImageManipulator class should be able to check the php version and if necessary, call the _resacle() method wchich dont using imagescale.