changes made for 8x8 bicolor and rotation