Fix for canvas images in getBasicConstructor (toString)