Added JWFlipImageTools, moved out methods related to view snapshots to layers.
Minor refactoring, added comments.