Image processing and target detection pipeline