Fixed a conceptual mistake from previous checkin. The modal dialog templates and buttons must be tied to the sf-image-selector-modal directive and not to the sf-image-selector directive.