Added classes ImageView, PreviewDialog and ScaleRunnable.