Use agg when there is no display