Paint app created in html 5 canvas with Flask as backend