updated to save image state
saves track states and updates the menu options