Add functionality for browse buttons if reached end of images