add class Application, ResourceManager, Singleton; add function loadimage