Remove double margin if an image has no caption or share buttons

Fixes this double margin under an image:

![screen shot 2014-12-10 at 17 31 45](https://cloud.githubusercontent.com/assets/2236852/5380721/6e9ec3b8-8092-11e4-9867-03bce78b70cf.png)