base for image processing