Some tweaks to the Cordova screenshot plugin for registration