In a weird bit of synchronicity I just saw Castle Eileen Doonan in the movie "Elizabeth: The Golden Age". It played the role of Fotheringhay Castle where Mary Queen of Scots was beheaded.

The castle appears in a shot exactly like the painting about two minutes into the movie, then again much later on.