fix different thumbnail size issue, fix error on add subsite
improve cms_helper, remove unused files