Multiple texture-related changes

- Refactored and moved the TexImageSpec class into images::ImageSpec.
- Updated examples to show the new features.