Automatic quality check of medical image data