x ray image processing using python