Initialize before images have finished loading, also img css fix for IE