Fixed memory leak saving images as webp when webpmux is available

We still have to manually free the buffer containing the encoded image since it's not managed by the MUX api.