making the java wrapper return PNG instead of tiff.