added images and writing to fg section