Implemented HTML5 figure and figcaption elements for images