Cleanups of src/emu/ui/viewgfx.c, some minor refactorings