vp2 method to recalculate vm and vh to pixel, resize function