BufferedRgb888Image, BufferedPalettedRgb888Image: Added size overflow checks.