Fixed image thumbnail function to include https:// and to fallback to unfiresized image