added a way to choose image frames