Learning Natural Image Structure with a Horizontal Product Model