Fixed JPEG problem