getPixelBytes(): bug fix