Make PNG creation work in Firefox

Auditors: eater