Make sure $img_num always starts a reasonable place, even if returning from