X-ray of the breast. Mammograms can be done to screen for cancer or to diagnose breast cancer. During a mammogram, breasts must be flattened between plates to get the best image possible, which can lead to minor discomfort. These x-rays can find issues that cannot be felt during self-examination.