Method and apparatus for improving the resolution of gray-tone images with text and images