Improved Texture constructor, fixed alignment.