fix thumbembed in cordova apps