Refactoring of the ImgData class, to only calculate img_data for specific absorption/background/supersampling configurations when there is a change in the parameters or data