comitting mt-imager code from Dan