fix localfiles image preview bug