flatten cutout rectangle
Add getopt support to phashr to not hardcode portals directory
Add reportalr.