Recalculate image centring on window resize