- set filename for pdf download
  - rotate and scale according to image w x h ratios