changed how image resizing is handled to remove the need to hide the sidebar