for (int i = 0; i < carouselSize; i++) {
if (images[i+preLoadSize] == img) {
int pIndex = i - 4 + currentPhotoIndex;
pIndex = Utils.modulus(pIndex, photos.size());
//fire off photo clicked event
PhotoClickEvent pcEvent = new PhotoClickEvent();
pcEvent.setPhotoIndex(pIndex);
pcEvent.setPhoto(photos.get(pIndex));
fireEvent(pcEvent);
break;
}
}
}