Fixed problem that sometimes thumbnails did not show the correct image. Should be fixed now.
- now each time i set the thumbnail I set the view to invalid, to force the draw update
- now the retrieval and creation of thumbnails checks if this is already being done. If so, ignores the call in order to avoid unnecessary double calls.