straight copy of resizing methods from video component - may want to make a mixin going forward soon