add functionality to store screenshot in persistent storage