Separate out lsystem generation from writing to images