cleanup of resetImageStatus script