A Package for Medical Image Analysis (S4 implementation)