Added option to show/hide image captions