adjust picture dimensions