removed PreProcessImage