cleaned up image consistency check
(#419)