WebP image refactoring