Added JPEG to the list of image extensions