A reference image-based method for optimization of clinical immunohistochemistry