Previous and next image are also working now