[21.5] Fix crash in PNG initialiation [was: can't move cursor ...]