The Alpha-Trim part

Note: I had to add a "dummyImage" object of type "byte[,]" to use in
filtering.