Adding code for loading thumbnail for internet and reading all data from file on sdcard