enable image preview. close #1