fix bug in default quality for jpeg and webp