attempt to reduce mem usage
WIP: re-factor nimsdicom using composer pattern