beginning to implement screenshot logic