add support for setting aspect ratio on graphs