Whether you're filling a vector or raster image, you need to create a shape and make a clipping mask. Remember to have the shape on top of your image when you make a clipping mask and if you want to fill a shape with a vector image, don't forget to group the objects first.