Auto generate thumbnails in ckeditor image upload