added interface for gfxObject, added middleground and getting ready to change rendering significantly, for epix code