Bug fixed regarding displaying file thumbnails

Bug resolved in ```getFileThumbnail() in file.py```
Corrections are made to display the thumbnail properly, depending upon the size of file.