allow for means that are double
add new image write class that is type independent
add methods to read generic ImagePtr objects