make reference jpeg codes