+ firefox fix. ImageElement does not have width / height before drawing
Merge pull request #546 from amikryukov/firefox-bug

JFG-776 saving images in FireFox fails