Textures and widget

Added a texture manager and a better interface for textures and add also a start for widget support with movable and resizeable rectangle on screen.