Restoration of Compressed Image using Hard Thresholding Method