fix for grbg/gbrg layouts