graph: change argument order of Register function

This commit is patch for following comment
FIXME: pass img as first argument

Signed-off-by: Daehyeok.Mun <daehyeok@gmail.com>
Merge pull request #7774 from somaopensource/graph_fixme

graph: change argument order of Register function