You could perhaps look at something like the pureimage package instead of canvas as that is just js and doesn't need any compilation.
You could perhaps look at something like the pureimage package instead of canvas as that is just js and doesn't need any compilation.