Performing simple image arithmetic