I am trying to merge to images... $row['shirt'] is null, so it just goes to the else.

<?php
require("connect.php");

$id = $_GET['id'];

$row = mysql_query("SELECT * FROM users WHERE id='$id'");
$row = mysql_fetch_array($row);

$body = imagecreatefrompng('http://www.pixelplanet.mezoka.com/images/avatars/avatar.png');

if (!$row['shirt']) {
$shirt = imagecreatefrompng('http://www.pixelplanet.mezoka.com/images/avatars/blank.png');
}
else {
$shirt = imagecreatefrompng($row['shirt']);
}

header("Content-type: image/png");
imagepng($body);
imagecreatefrompng($body, 128, 255, 0);
imagecreatefrompng($shirt, 128, 255, 0);
imagedestroy($body);
?>
All it is showing is the link of the page on the screen.
The reason I am using * instead of shirt is because I have more than just shirt in the array that I want to use when I get the stupid thing to work.