I want to create image using HTML5, With HTML5 I can set any property of image.

```
var img = new Image()
img.id="image1"
img.name
img.src="image1.jpg"
img.style="-webkit-transform: rotate(90deg)"

```

the result will become

```
<img src="image1.jpg" id="image" name="asdasd">

```

all will work except style because I hope the result will be

```
<img src="image1.jpg" id="image" name="asdasd" style="-webkit-transform: rotate(90deg);">

```

please help me, thx