basic image scaling added.  small bug in applying the filter exists.