making homepage image weighting work