created class for the image processing