Added support for image depth sorting.

Reversed the sort order in the rube script to supply the image depth in
the correct order for AGK.