writeImage

Writes the image to the file under path, creating parent directories if necessary.