As far as I know, pseudo-elements do not work on replaced content. `img` is a replaced element, thus the `::after` pseudo-element won't display anything. More informations: http://red-team-design.com/css-generated-content-replaced-elements/.