def getcropbox(button):
    """Given a selenium WebElement, return a PIL friendly 
    (left, top, right, bottom) crop box
    including the top frame and padding offsets"""
    topframe = 95
    padding = 6
    xoffset = padding
    yoffset = topframe + padding
    return (
        xoffset + button.location['x'], 
        yoffset + button.location['y'], 
        xoffset + button.location['x'] + button.size['width'], 
        yoffset + button.location['y'] + button.size['height']
    )