fixing gallery image index

broke the image template... split function off for testing