memory limit of 8MB for php is the default setting, which is fairly stingy. we usually bump this to 32MB in php.ini on our machines.
my uneducated guess is that the attachment uploading code (something in Subs-Graphics.php?) uses memory inefficiently. something like this possibly?
$fp = fopen($upload, 'r');
$contents = fread($fp, filesize($upload));