Add conversion from grid location to image viewer for painting