Copy image.clj from mosaic project. Implement pdf-to-images and stack functions to convert a multi-page pdf into a single long image.