Thanks alot for your reply but I have a concern, In ProductDetailsBody.jsp he iterate 4times to get the images following a naming convention as you said but what about the 4images I entered in the admin. I don't see that he use the other images in the client.
Shall I have to add only 1image then there is a process run to create other images or I have to add the images in the images folder manually?
Also I am asking if I want to add more than 4images in the admin, is it possible.