outputting images for DG