fixed issue with camera pixel clock polarity
improved setting of camera registers depending on format