issue #1259 fix + test: ancient get masking objects from image mask was infected by bitrot