Acredito que esse projeto pode ajudar

https://github.com/staticallyio/screenshot