Stupid suggestion. I'd load all the images etc. into memory first, then print them