Fix for #165 - image index now updated