add base class for processing image