made image resize from ckeditor into a function