please extract a function to new file and require it in build.js and configure.js, file content like this:
```js
function customizeMaximumImageSize(maxImagePixelSize, maxSnapshotPixelSize, requiredEXIFPreviewSize) {
var content =
  '//\n' +
  '// This file is automatically generated: DO NOT EDIT.\n' +
  '// To change these values, create a camera.json file in the\n' +
  '// distribution directory with content like this: \n' +
  '//\n' +
  '//   {\n' +
  '//     "maxImagePixelSize": 6000000,\n' +
  '//     "maxSnapshotPixelSize": 4000000 }\n' +
  '//   }\n' +
  '//\n' +
  '// Optionally, you can also define variables to specify the\n' +
  '// minimum EXIF preview size that will be displayed as a\n' +
  '// full-screen preview by adding a property like this:\n' +
  '//\n' +
  '// "requiredEXIFPreviewSize": { "width": 640, "height": 480}\n' +
  '//\n' +
  '// If you do not specify this property then EXIF previews will only\n' +
  '// be used if they are big enough to fill the screen in either\n' +
  '// width or height in both landscape and portrait mode.\n' +
  '//\n' +
  'var CONFIG_MAX_IMAGE_PIXEL_SIZE = ' +
    maxImagePixelSize + ';\n' +
  'var CONFIG_MAX_SNAPSHOT_PIXEL_SIZE = ' +
    maxSnapshotPixelSize + ';\n';

  if (requiredEXIFPreviewSize) {
    content +=
      'var CONFIG_REQUIRED_EXIF_PREVIEW_WIDTH = ' +
      requiredEXIFPreviewSize.width + ';\n' +
      'var CONFIG_REQUIRED_EXIF_PREVIEW_HEIGHT = ' +
      requiredEXIFPreviewSize.height + ';\n';
  } else {
    content +=
      'var CONFIG_REQUIRED_EXIF_PREVIEW_WIDTH = 0;\n' +
      'var CONFIG_REQUIRED_EXIF_PREVIEW_HEIGHT = 0;\n';
  }
  return content;
}
```