Untested texturepacker implementation.