output images and final code