code: public static int[] getMaxImgSize(int h, int w) {
  		int[] size = {h, w};
  		int max = Config.MAX_IMG_SIZE_PX;
  		if (w == h) {
  			size[0] = Math.min(h, max);
  			size[1] = Math.min(w, max);
  		} else if (Math.max(h, w) > max) {
  			int ratio = (100 * max) / Math.max(h, w);
  			if (h > w) {
  				size[0] = max;
  				size[1] = (w * ratio) / 100;
  			} else {
  				size[0] = (h * ratio) / 100;
  				size[1] = max;
  			}
  		}
  		return size;
  	}
docs: Returns the adjusted size of an image (doesn't do any resizing).
  @param h an image height
  @param w an image width
  @return the adjusted width and height if they are larger than {@link Config#MAX_IMG_SIZE_PX}.
  @see Config#MAX_IMG_SIZE_PX