Add next and previous buttons for image rotation