But what type of image does piechart actualy return? PD4ML supports by default only Web- and Java-friendly image types: GIF, PNG and JPEG

Also “image size: 1895” log entry does not 100% mean it got an image. It still may be an error HTML message. The space characters in the image URL are possible reason of the error.