added rule engine/ photo/ cam/ signature
added init
added deviceid and user id
logic changes for refresh
change the options for checkbox
completed base64 file uploading