fix bug that skewed gl display of images loaded on linux machines