the image containing the data to write as a png
filename of the output
true if writing succeeded, else false.
See Implementation