Add a function used to get thumbnail from picture path.
Now in showLogActivity can show thumbnail of log photo.