This paper presents a novel error detection and correction methodology for corrupted discrete cosine transform (DCT) coefficients caused by the transmission of DCT coded images over a noisy wireless channel. This method is based on the properties of DCTs and the transmission of exact intensity values of a few reference pixels. These allow us to identify the error pattern and correct the corrupted DCT coefficients. It is possible for the receiver to correct up to t corrupted DCT coefficients in an image block with the knowledge of 2t+1 reference pixel intensity values for each image block. When the number of corrupted DCT coefficients exceeds the correction capability of the proposed algorithm, concealment techniques are employed to recover the corrupted image block by using the reference pixel intensity values. Simulation results are presented to demonstrate the performance of our algorithm.