Simply added 'webp' as an image format to the img_formats array so that webp image files can be used as training data.