graphicsUtil.c looks better. Implementation detail added.