Fixed weirdness when opening transparent images