corrected image bpp matching typed array type