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