Drawing is now done with JavaScript. Adopted motgen's code for memeone.