Testing DPI preservation in Cocoa image transcoding