output image to file, but non-javascript image