fixing bug for broken image