Send image copy in downsize filter

which prevents memory leaks.