Added the footer buttons to Image Selector and implemented the Cancel button, which closes the modal dialog.