Added event to wait until images loaded to get modal height