frontend: add screenshot functionality