BUG: address suboptimal mean_img