You can already resize the image from the field of a model, why not a field from an xmlid object or an xmlid object itself ?