switch to globals (passing array names around is ugly). (maybe look into dicts sometime?) also, properly detect width/height from the input instead of hardcoding it
switch to globals (passing array names around is ugly). (maybe look into dicts sometime?) also, properly detect width/height from the input instead of hardcoding it