who invented the first pinhole camera