Replace image by canvas element.