Thanks. What I did was check for the size of the sprite, and if the width is a certain amount, let's say 25 pixels, then it calls a procedure. Then in the procedure, I check if the picture matches a certain picture in the system to check and see what sprite it is. Finally, once the program knows what it is, it can carry out operations based on the sprite. Thanks so much!
One more small thing: for some reason a png file turns blurry when I expand the resolution, but it is pixelated, a 32x32 picture. How do I keep the pixels sharp when I greatly increase the size of the image?