Modified canvas size to 512x512.