Image reduce sum

Added this branch back in NSLS2