the main image and sub images all come from the same rs. mainImage and subImage are just the styling classes. I am just trying to get the first rexord returned to be shown with the class mainImage and all subsequent images to be shown with the class subImage