Changed format of output image to PNG