public function draw() {
foreach ($this->getMobs() as $mob) {
$mob->draw($this);
}
$output = $this->getResource()->getImageBlob();
$outputType = $this->getResource()->getFormat();
header('Content-type: ' . $outputType);
echo $output;
}
public function draw($location) {
$image = new Imagick($this->getImage());
}