Modifying the thumbnail generation for PDFs to not skew the picture as much and crop if we get too small.