Merge "Open image files in binary mode" into qt-dev