Add error handling for invalid width/height.
Add pixel grabbing on Linux.