Fix bug when using target.

The (temporary) iconset folder wasn't getting created.
Change target to a positional argument.
Rename mask_file to mask.