Enhancing performance of conventional image codecs using CNN based image sub-sampling and super resolution