When computing the box size, allow the caller to specify some reserved height in the case of images, and strip image tags during the height computation.  This half-heartedly works around the issue where images are only counted towards the size computation if they are already cached/loaded and not if they are still loading.