Added parameter to loader to allow for unique id generation.
Support for image depth.
Fixed a couple of issues with angle directions.