make gfx.py less stupid since it's about to become useful