Fixed image link error function