Added feature --windowid which lets you take a picture of specified windows (or a region within them), and fixed a few bugs.