Added new texture creation method.