when i try to take photos from camera it shows that unable to generate thumbnail
Hmm... Using a file manager, try moving the photos to a different folder and check if it generates thumbnail.