check for bbox validity before processing image