RandNet: deep learning with compressed measurements of images