Fixed convolution and added corner detection