Hi @robotjackie
I am happy to try and help but that’s roughly 1000 lines of code and you don’t say where you are having problems. I believe that @kennethlimcp has worked with this camera (I assume you have a OV7670) or a similar i2c camera too.
Some folks are still reporting issues with i2c on Photon in the 0.4.7 release but many people are not having issues, so that is something to consider.