separate images preload from the utils file. performance improvement