Image Restoration In The Presence Of Bad Pixels