Image resizing to fit better in PDF