dowscaled added. edge detection added