Adding tempCanvas which save previous drew figure