automatic adjustment of picture size