Problem 4 updated with filter of sub image

only for debug purposes.