add screenshot functionality

Add a screenshot functionality to lotpackviewer.
It's very basic, but it needs to move a variable from private to public.