Improved quality of images by introducing camera stability index

Pictures are taken only when the device conforms to a minimum camera
stability.
Stability depends on the overall accelerometer index not more than a
value of -0.005