Centering dynamic divs, not showing images till they are fully loaded