Implemented screenshot listener and thumbnails.