Added resampling functionality to Media and Video