I think the right thing to do is to have some new function that handles the work and not place the gory code in doScreenshot. If it is true that we want all costume names to be unique then modifying `addCostume()` would be a smart move. :)  Smaller, less-involved functions are much easier to maintain and debug.