Ensure images load before computing height.