added check for --no-graphics argument