added actual image processing