check for WebP only once