Update ContextImageWidget.java

Calculation given during class