Added eject-on-fail to pngwriter