Let the user change size unit directly from the status bar

It's actually a very small code change, but multiple files had to be
edited so that they passed a pdImage reference instead of just
width/height values (as we also need to retrieve resolution data from
the pdImage).