Fixed bugs in DoG computation, works now