fix bug with image resizing dpi - was using wrong inch measure