To update Magento 2 Image Optimization Extension by Magefan, please follow the Updating Magento 2 WebP Images Extension and Updating Magento 2 Image Lazy Load Extension.