You can open a jpeg or png file in Photoshop, convert it to grayscale and use the keyboard shortcut Command (Mac)/Control (PC)-i. This will invert the black and white automatically. Keep in mind that jpeg and png are raster images and thus are resolution dependent. They will need to be used at the original size that they were created or smaller with sufficient resolution in order to avoid pixelization.