Made a function to fill the side panel based on what object was
supplied. Set up the side panel to load a picture