Consolidated methods of reading compressed png/jpg file data using IO.binread; fixed jpg read error.