[utils][change_image_key_control] filter frame indexes to insure they are contained in the image_keys buffer