I cannot say about the 2008 movie but from what I’ve heard John Bunyan’s book on which the movie was apparently based contained anti-Catholic elements. For instance, Bunyan’s character named Pope is depicted as an old, decrepit giant who once shared his cave with another giant, now dead, named Pagan and in the past they had been deliberately responsible for the deaths of many pilgrims seeking the Celestial City (Heaven).
{167} In this light, therefore, he came to the end of the valley.
Now I saw in my dream, that at the end of this valley lay blood,
bones, ashes, and mangled bodies of men, even of pilgrims that had
gone this way formerly; and while I was musing what should be the
reason, I espied a little before me a cave, where two giants, POPE
and PAGAN, dwelt in old time; by whose power and tyranny the men
whose bones, blood, and ashes, &c., lay there, were cruelly put
to death. But by this place Christian went without much danger,
whereat I somewhat wondered; but I have learnt since, that PAGAN
has been dead many a day; and as for the other, though he be yet
alive, he is, by reason of age, and also of the many shrewd brushes
that he met with in his younger days, grown so crazy and stiff in
his joints, that he can now do little more than sit in his cave’s
mouth, grinning at pilgrims as they go by, and biting his nails
because he cannot come at them.
{168} So I saw that Christian went on his way; yet, at the sight of
the Old Man that sat in the mouth of the cave, he could not tell
what to think, especially because he spake to him, though he could
not go after him, saying, “You will never mend till more of you be
burned.” But he held his peace, and set a good face on it, and so
went by and catched no hurt. … (
source)