The overlay function should accept a mode, which can be one of `'add', 'preserve', 'overwrite'`. It's currently only doing `'add'`.
The overlay function should accept a mode, which can be one of
'add', 'preserve', 'overwrite'. It's currently only doing'add'.