Reset crop values if image changes
Use dimensionwindow only locally to prevent memoryleak