put bitmap code in view instead of activity. added a clear button.
added custom attributes