The git source code repository already contains a solution to use my other tool phancap as screenshot service.