GenerateImageUrl - add control of current index