Through the Looking Glass: Painter David Hockney links classical art to optics