Add initializeWithSelection and getSelectedIDs. Return the count of deleted shapes.