Resolve image artifacts due to wrong coefficient index lookup.