common interface for image algorithms