Added ability to create a png_file in memory.