Add support for non-power of two textures.

This pull request closes #26.