Compress scan masks