adding image resize for thumbnail
managing thumbnails