Attempt to add Webp support by following libpng model