Revert "highly experimental replacement of img with canvas" onwards

This reverts commit dd4b48fcd330f850c95a65a9f1e5770a4c954b28.