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>