Fixed SensorViewer to accept images of different sizes.