Fixed a bug affecting images created from data URLs on Firefox