gradient bmp reader