Improve footer height calculation

Use jQuery to check if the images have also loaded before calculating
footer heights