corrected image parsing