In my detailed images it still showed the first detailed image in the detailed section below, after using it as the thumbnail.
Looking at the code of product_image.tpl I assumed this was because images were in the database.
I modified the code to start the loop iteration after the first image to fix the problem.
Code:
{section name=image loop=$images start=1}