finished error correction

added error correction and updated image table