add image writing
writing images works! :camera: