ref to imagecopy function.