first go at adding image support.