improved figure snippet
added definition box snippet