You might reuse ```loader``` variable here, rather than calling ```CKEDITOR.document.getById( imagePreviewLoaderId )``` once again.