Well, I'm running the nightly build now and I don't see any memory errors, but I did notice something pretty interesting about the jpg files themselves...
When opened in a text editor, they contain two newline characters followed by <!-- zenphoto version 1.1.3 Theme: default (full-image.php) -->