attachTexture

Adds a texture image attachment.

Any previously added attachment of the given type is removed.