Added support for pre-loading images inside the map