Note, this will only work in browsers that support '<canvas>'.