Add copy method to textures.