Finished image preprocessing