Add attribute for graphic device

1. Modify base function place for grahic device use
2. Add attribute and element method for graphic

Signed-off-by: Kyla Zhang <weizhan@redhat.com>
Merge pull request #1412 from autotest/1233

Add attribute for graphic device