Implemented the "previous" button functionality on the imageView.