update raw_view.py (support gray image)