added glimread for grayscale images