add custom graphics.c

Change-Id: I253c4b7c66441c13af5fbfc4a5291b101439e617