Galaxy shear estimation from stacked images