now converting image to a JPEG before sending it back out