fix(jpeg): add jpeg logic