added pixel paint routine to the custom view.