Fix for problem with reference image table