also testing encoding for jpeg/tiff/webp