fix distortion of grid and split into 9x9 bitmap