added center option for graphics