update glimg for the Uint8 array that imread now returns