Added clipShape and plotBackground fuction.