refactored some output
initial structs for image output