The effect of binning and stacking on image quality