Quick question. The code says png, but saves report snapshots as gif:
% Convert image to PNG
jByteStream = java.io.ByteArrayOutputStream();
javax.imageio.ImageIO.write(jImage, 'gif', jByteStream);
Is this a compatibility issue? It seemed to work ok for me when I replaced 'gif' with 'png'.