To add a bitmap image to a rectangle, or any vector shape, hold down the Shift key and drag and drop the image from the desktop or from Windows Explorer onto the target object.

Once the photo is in place, click the shape with the Fill Tool to edit the fill.

You can also import the photo into Xara, then select the target object, open the Bitmap Gallery, select the image and press Fill.