fix for non-X systems: use('Agg')