canvas image with squares drawn