appearance of grids problem solved by re-computing the position of the final image where each block is rendered. now problem is appearance of thin black frame at bottom-right sides of the visualizer