Additional global variables in gmic

Not bad, most of the info I proposed is there. An internal function similar the CImg examples could allow to extract the necessary information in gmic.