refactor Texture class
add a texture to drawSquare example