added tests for image and spellchecker

modified replace methods in spellchecker.