     <script>console.log('Warning: Session Environment is empty.');</script>
 </cfif>
 
-<cfset referer_cfm_page = "profile_image_upload_v3.cfm">
-<!--- 
-<cffunction name="dumpAll">
-    <cfdump var='#cgi#'>
-    <cfdump var="#form#"> 
-    <cfdump var="#variables#"> 
-    <cfdump var="#request#">
-</cffunction>
-<cfset dumpAll()>--->
-
+    <cfset referer_cfm_page = "index.cfm">
 <!--- begin image processing --->
 <cfif cgi.request_method IS "post" AND 
-      ( 
-      structKeyExists(form,"hidden_input_image_file") 
-      OR 
-      structKeyExists(form,"hidden_input_image_file_cropped") 
-      )>
+      ( structKeyExists(form,"hidden_input_image_file") OR structKeyExists(form,"hidden_input_image_file_cropped") )>
 
     <cfif structKeyExists(form,"hidden_cropped_flag")>
-        <cfset search_text_area = #form.hidden_input_image_file_cropped#><!--- search_text_area if image IS cropped --->
-    <cfelse>
-        <cfset search_text_area = #form.hidden_input_image_file#><!--- search_text_area if image IS NOT cropped --->
+        <cfset search_text_area = #form.hidden_input_image_file_cropped#>
+    <cfelse>
+        <cfset search_text_area = #form.hidden_input_image_file#>
     </cfif>
 
   <cfif (trim(form.hidden_input_image_file) NEQ '') OR (trim(form.hidden_input_image_file_cropped) NEQ '')>

<!--- CFM Action page for form submit on page _up_7.cfm --->
<cfsetting showdebugoutput="false">
<div style="background-image:linear-gradient(to top,rgba(255, 255, 255, 0.3), rgb(240, 240, 240));">
<cfinvoke component="up" method="session_user_profile" returnvariable="get_session_user_profile"/>

                <cfset local_occurrence = mid(#search_text_area#, (#starting_index# + #header_length#), ((#ending_index# - #header_length#)-#starting_index#))>
                <cfset image = imageReadBase64(#local_occurrence#)><cfoutput>#ending_index#</cfoutput>
                <cfset name_of_image    = #CreateUUID()#>
                <cfimage action="resize" height="300" width="200" 
                         source="#image#" 
                         destination="#path_server_directory##name_of_image##file_type_png#" 
                         nameconflict="MAKEUNIQUE" 
                         overwrite="yes" />
                <!--- <cfimage action="write" source="#image#" destination="#path_server_directory##name_of_image##file_type_png#" nameconflict="MAKEUNIQUE"> --->
                               
                <cfset search_text_area = replace(search_text_area, full_occurrence, path_url_directory & name_of_image & file_type_png, "All")>
                <cfset file_name_on_server = #path_url_directory# & #name_of_image# & #file_type_png#>
