use imagecopy to handle 32bit transparent PNG issue