added caption attribute within the anchor tag
dynamically add and remove the captions
added the styles for the image caption