If you undo once at the beginning, you empty the stack. If you import a png afterwards and then undo the import, the base form is not on the stack anymore, meaning that the importet png is just filled white and the size will not be changed, resulting in a wrong undo.
If you undo once at the beginning, you empty the stack. If you import a png afterwards and then undo the import, the base form is not on the stack anymore, meaning that the importet png is just filled white and the size will not be changed, resulting in a wrong undo.