Support some more bpp values

Should work for any multiple of 8