add simple exceptions to the api
begin adding image support