Generate screenshot controller