That is a bug with GameMaker - if you have "enough" code, the debugger can choke and skip several frames.
Is resolved by adding an empty room in front which has an otherwise empty object in it which has
if (image_index >= 3) room_goto_next()
in it's Step event.