Consider aspect ratio when writing tiff dpi.

TIFFTAG_YRESOLUTION gets now adjusted to sample_aspect_ratio.