Update to work with the new layers Texture abstraction.
Merge pull request #30 from pcwalton/texture-wrapper

Update to work with the new layers Texture abstraction.