added extra image processing