Added convenience function for transforms
Modified packing to maintain xy coordinates