Changed to new function (ProcessImageBase)