Shrinkage and optimisaiton of slide images