Prevents invalid image path binding.