improved status codes, expanded image checking to recognize wrong geometry