add cdvfile to allowed protocols about ng-src
store pictures locally
remove ng-pattern: cost too much
download file during synchronization