move webp relate method to Utils