I assume you mean a newline character, also sometimes referred to as a carraige return or line feed. In general in php this is done with a "\n". So I would assume that by changing:
fwrite ($fp, $image);
to:
fwrite ($fp, $image."\n");
you would get the result you want? But maybe someone else could confirm that?
Hope that helps,
Richard