> Looks like there is an extra new line character in the beginning of the > produced PNG image file :-? Panagiotis, you are exactly right. The file without the first byte is a normal picture. Rui, is there any "headers already sent" message on the page? -- Denis Ovsienko