to create buffered image and perform image operations