Add comments, add api.goToImage()

Also move cur_image setter inside display_image