Finished "Reduce Gray Level" and "Transformation" porting.