added extra file parameter

Added extra parameter to store the image file in Phonegap
get the file name and save as file

get the file name and save as PNG file under Documents folder of the app
add filename

add "filename.png" to save under the Documents folder or javascript
variable