Added a check to delay the equal height calculations until images are loaded.