change image preload method