By holding the Ctrl key and drawing a shape over an image.  By using a Layer mask. By holding the Shift key and merging the image and shape.  By using a Clipping mask.