Set the state of all components when loading image or changing the image that is selected