def crop_image(new_width, new_height, image):
    """
    Method to crop a given input image to new width and height specifications given.

    Args:
        new_width: Width of the cropped image
        new_height: Height of the cropped image
        image: Image object to be processed

    Returns:
        The cropped image.
    """

    width, height = image.size

    # Cropping image
    left = (width - new_width)/2
    top = (height - new_height)/2
    right = (width + new_width)/2
    bottom = (height + new_height)/2
    res_im = image.crop((left, top, right, bottom))

    return res_im