Fix Slow rendering for PDF with image #110