fix example to run without a DISPLAY

this is necessary to run the example on travis-ci