adding extra padding in bufferImage because wavelet was getting cut off
fixing mask corner indices in is_edge_straight
trivial (cleanup)