updated table to use imagecopyresampled  instead of imagecopyresized