Ported the webworks thumbnail extension to cordova plugin