simple wrapper for phonegap camera api.