To solve the problem of photos cannot be displayed