Always use Agg when not showing graphs