add a screenshot mode; fix #30