Camera preferences not working, so disabled. File writing bug fixed.
Updated arduino code