From Marcel Pursche, fixed checking of destination dimensions in osg::copyImage.