dynamic sizing of camera image