Refactored several views and got the images to be displayed according to the route.