fix bug: parse jpeg image