send jpeg image as image/jpeg if no file name