add replace canvas with image tag function