How can I resize photos in the pdf view?