added previous and next buttons to image modal