Revert "Revert "Resize the thumbnail""

This reverts commit e45510a39457cde927703a1b03c046f3fcabac37.
Make resize optional