Add error handling if custom image path is wrong