Cambia questo
codice:
imagepng($im, $projname);
con
codice:
imagepng($im);
e richiami l'immagine con
codice:
[img]immagine.php[/img]