initial broken linking to surrounding pixels; use file api to write data
fixed triangle winding, added normal calculation, added pixel scaling
switch to using logging api
initial output averaging/resampling added (broken - resample grid size is wrong)
fixed resampling, better rgb default ratios