arithmetics related to images