NPR image code fix