added check to image template to hide caption if no caption is availabe, fixes #5