Ported to use the new Avogadro API for rendering

Change-Id: I89b0ee4016f59b0d18d20ad3a8ca287de3a55e99