From Learning Models of Natural Image Patches to Whole Image