added thumbnail generator for enhancing performance
changed images resolution to 338*225 for better performance