Problem explained in the .cap: http://dl.dropbox.com/u/4322334/test2.cap
I was messing around with this because it seems quite intuitive.
I *think* I fixed your problem:
<img src="http://i37.tinypic.com/1euec9.jpg">
Develop games in your browser. Powerful, performant & highly capable.
Thanks, i found another way around it, but yours is certainly better.