$cordovaCamera.getPicture ({
DestinationType: Camera.DestinationType.FILE_URL,
quality: 50,
targetWidth: 200,
targetHeight: 200,
sourceType: 0,
allowEdit: true,
encodingType: Camera.EncodingType.JPEG,
saveToPhotoAlbum: false
}).then(function (filePath) {
//does not call every time
}, function (errs) {
alert(errs);
// An error occured. Show a message to the user
});