Vertical align elements of different heights (based on xerxos's method)

Image vertically centred
Image vertically centred