title: Wicked_PDF kills the server memory when too many images in Rails
body: <p>I am using wicked_pdf to generate a pdf report in a rails 5 project. But the server gets down when there are too many images on the report. All the images are saved in the same server. And I use external css files which are located in the same directory. Image sizes are also small. Please see the code below.</p>
  
  <pre><code>respond_to do |format|
    format.html { render :inspection_report, layout: "reports_layout" }
    format.pdf do 
      render  pdf: "inspection_report",  
              template: "pdf/inspection_report.html.erb", 
              layout: "pdf",
              margin:  {  top:    0,
                          bottom: 0,
                          left:   0,
                          right:  0 },
              viewport_size: "width=device-width, initial-scale=1.0"
    end
  </code></pre>
  
  <p>Are there any other ways to optimize this process? </p>