Added color and rectangle recording