Respect headless mode instead of enforcing it
Merge pull request #137 from sergei-ivanov/master

Respect headless mode instead of enforcing it