updated MedImage to use the decorator pattern