R0j0s example fiddled to match your example a bit more. Not perfect, it's a start.
[attachment=0:38lzr4dv][/attachment:38lzr4dv]
I do agree that the Canvas plug in will produce much better results with far less resources but I don't know how to do it.