Add preloading image function to portfolio overlay images