Prevent memory bloat.

An array of potentially thousands of photos each with a large binary
string can fill up the memory fast. Shifting off of the array with each
iteration along with lazy loading of binary data should make things
manageable.