decided to use standard html 5 canvas methods