added Resources class to manage resources such as Pixmap and Texture.