if (dongle < 1)
{
dongle = 22;
if (image_index < 5)
image_index += 1;
if (image_index == 5)
finished = 1;
}