copy width and height to avoid reflow
Merge pull request #2 from attiks/width_height

copy width and height to avoid reflow