added square thumbnail support