The use of optical character recognition (OCR) in mobile devices is becoming prevalent with the increasing use of mobile devices. One important application for OCR in mobile devices is recognizing and translating the text to a language understandable by the user. Techniques are provided for replacing symbols in an image, while reducing the artifacts as a result of re-rendering of the background image.