Implement basic JPEG