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