fixed issue when changing camera image size