updated the MedImage class to include functionality for windowing