[BUGFIX] imagecopyresized: correct invalid parameters