added the origin variable to all atlas and text generation
extended the previous commit to include grid arrays to fix a bug