if (!loop) { main_speed = image_speed; image_speed = 0; image_index = image_number - 1; }