add image data loop