Added logic to clear drawing after 1 sec