Merge modes of summation and averaging implemented with checkbox under image range