How to perform calculations using the Image Picker widget.