Convert Pattern toImage for rendering the ground