Drawing image primitive
Fix gravity type validating
Merge branch 'patch-2'