Why would some programs write images bottom-up in the first place? The reason is: mathematics do it that way.