Update screenshot method to add CSS class to image. Refs #9521.

- This is required to easily style the image, e.g. alignment.