adapt to RPi camera module