I would, try to figure out how to do it with roImageCanvas, instead. A bit trickier, just because imagecanvas is kinda weird, but ultimately you can do it pretty much exactly the way you want it. Also, don't use goto unless you have no choice, instead, use a while loop while true ...do stuff if stuf...