A statistical mechanics-based investigation of a solute atmosphere interacting with a crack: solute redistribution and image effects