prova a sostituire anche imagecopyresized con ImageCopyResampled

ciao