JPEG Writing tests