How does the machine created by Dr Loveless in 'The Wild Wild West' episode 'The Night of the Surreal McCoy' teleport a man from the real world into a painting?

Who knows but it was a plot device using transmogrification to transport the characters into and out of the painting .