Fix JPEG preview issue?