fixed density and added resizing to pdf->png conversion
replaced literals with their constant counterparts