Main image tweak

Rather than taking the image with index == 1 as the main pic, take the image (including video) with the lowest index