updated image processing