Fixed lag problems by preloading all images