updated updateResultImage() again