A Restricted Boltzmann Machine for Image Compression