Methods and apparatus for performing specified actions when the relative position of specified objects satisfies conditions specified by a user and expressed in one or more rules. In addition, a calculation unit calculates the color of the predetermined area of the input image based on the results obtained by the binarizing unit. Thus, it is possible to effectively air-cool the image formation portions without increasing the size of the apparatus. The management unit manages all or part of the plurality of functions as belonging to one group.