Renders all preceding drawing commands onto the image.