A Jpeg encoder and decoder to display various bit approximations from rgb files