A 16th-century painting of Judas survived this long thanks to ingenious repurposing