nokia: add convenience function to extract JPEG images.