What movie is it? prison, painting, treasure

‘There was a Crooked Man’ (1970) with Kirk Douglas and Henry Fonda ?