Rewriting gfx array object (partly done)