more foundational work... now generates images!