Convert bmp data to div blocks and show in webpage