Added image preloading functions