fix visual bug in image gallery display

omit fig caption altogether if an image has no legend