Fixed variable typo
Only search image base name not the entire path