 	<cffunction name="updateAvailable" output="no">
 		<cfargument name="data" required="yes" type="struct">
 		<cfargument name="extensions" required="yes" type="query">
-		<cfset var result=getdataByid(data.id,extensions)>
+		<cfset var result=variables.getdataByid(arguments.data.id,arguments.extensions)>
 
 		<cfif result.count()==0><cfreturn false></cfif>
-		<cfif data.version LT result.version>
+		<cfif arguments.data.version LT result.version>
 			<cfreturn true>
 		</cfif>
 

		<cfargument name="src" required="yes" type="string">
		<cfargument name="width" required="yes" type="number" default="80">
		<cfargument name="height" required="yes" type="number" default="40">
		<cfset local.id=hash(src&":"&width&"x"&height)>
		<cfset mimetypes={png:'png',gif:'gif',jpg:'jpeg'}>

		<cfif len(src) ==0>
			<cfset ext="gif">
		<cfelse>
		    <cfset ext=listLast(src,'.')>
		    <cfif ext==src>
				<cfset ext="png"><!--- base64 encoded binary --->
			</cfif>
		</cfif>

	<cfset cache=true>

	<!--- copy and shrink to local dir --->
	<cfset tmpfile=expandPath("{temp-directory}/admin-ext-thumbnails/__"&id&"."&ext)>
	
	<cfset fileName = id&"."&ext>
	<cfif cache && fileExists(tmpfile)>
		<cfset request.refresh = false>
		<cffile action="read" file="#tmpfile#" variable="b64">

					local.externals=data.extensions.otherVersions;
					if(isArray(locals) && locals.len() && isArray(externals) && externals.len()) {
						loop array=locals item="local.lv" {
							local.lvs=variables.toVersionSortable(lv);
							local.exists=false;
							for(var i=externals.len();i>=1;i--) {
								if(variables.toVersionSortable(externals[i])==lvs) exists=true;
							}

							if(!exists) {
