Turn frontend/util/canvas into a package

Signed-off-by: Jerome Flesch <jflesch@gmail.com>