change deprecated image_resize function to wp_get_image_editor

Changed deprecated image_resize function to wp_get_image_editor