Fix for #11160 (Wrong PNG/JPEG resolution on linux)

Fix png/jpg resolution metadata which caused the images to render stretched.