use sendfile to send jpg file