optimize decompress jpg data

it may be unnecessary copy jpg bytes one by one when decompress jpg data