updating camera to crop and resize images properly