Added function to get the sidebar image from each page