use image load event replace windows load event