I updated this a bit to make sure all thumbnail images are loaded before showing the module.