if (image_index > 0) { image_index -= 1; alarm[2] = 3; } else { alarm[0] = 45 + random(60); }