New way to add images or resources into CKEditor

I removed the current way to adding attachments to the editor. Above the CKEditor I added two buttons, first for images and second for resources. Both links display modal dialog,  allow select multiple items and pagination. Dialog for images allow to select size of selected images.