resizing on both modes works on one picture