Angular 4 Compress Image Before Upload