bv addition for image resizing