I've managed to solve this problem.... However, in doing so, another one has come up: I'd like to include the image amongst some other PHP/HTML output. However, due the header being set to image/png I am receiving the 'Cannot modify header information' error. Is there anyway to avoid this and include both output and the created image in a file, or do i need to use another method like iframes to embed the image?
Thanks....