Image processing example in phonegap