Consolidated and fixed file reading methods between compressor classes.

The jpg_compressor class was not reading the compressed file in binary mode. I changed the read method and modified png_compressor to match methodology.