added fix to prev and next image buttons... resets size of figure.