Added atlas expand and reset functionality

- added function to reset atlas/stash
- added function to expand atlas size
- fixed texture creation bug (used width for height)