Refactoring

Added possibility to change TextureWrap + deleting redundant code