PNG: fix row copying for < 8 bit images with a width that is not multiple of 8

Fixes ticket #11291.