Preliminary design and validation of a modular framework for predictable composition of medical imaging applications