OS X code to generate a single image proof sheet from a PDF