added plotting contrast option