Added mutable image and updated filters to apply inplace.