api2:working jpeg capture and more comments how it works