fixed image parsing even for those with missing tags