remove bad image refs from project