Add Image draw functions.

Add KL distance calculations.