Taking review commens into account:

* Improve dump image tests by checking the size of the generated file