improved resize performance of SmartImageViewer