Added function to preload menu images