Assuming you want to merge the images and not replace the generated png with another one, you could use Image::Magick module to do that (IIRC you can use the 'Coalesc' method, see the docs).
If you do want to copy the image file, use the (standard) File::Copy module.