draw grid on bmp