Resizing image widgets

This code snippet shows some of the functions that can be used to properly resize elementary image object.