Added PageSegMode, SetVariable, SetRectangle...

Also refactored the example program and added a new image