bug fix (height was not loaded correctly, possibly because the images

were not yet fully loaded)