change deprecated image_resize function to wp_get_image_editor