Shruthi, Hemanth | fixed the image index issue on document upload for images added in the new visit.