Slow rendering for PDF with image