rewrite preload method again, now images start loading after jquery is ready