Back ported some fixed from trikstudio-fifo-ov7670 to minimize diff