added ca_prev to imfindCA