changed png('NUL', ...) to png('NULL', ...) for linux