Fixed jpeg processing. Added connect button/setting