adding the jpeg bits