fix fallback image logic