Processes raw images into background-subtracted images.