fix smoothing for images