update to read bgr image