correction of the error path of image