The destination index should be ```(i * rgbChannelCount) + j * bpp)```, no?