[fixed #365] Used new implementation for new Image

Replaced new Image() with document.createElement("img")