I agree. However, when working with a big image, saving copies of it can rapidly lead to high memory usage. So if there is a problem with the memory manager or no more disk space available, it is possible to get an "out of memory" error. On the other side, there does not seem to be a memory leak here, and the program works on many systems, so "normal" high memory usage is probable here.