The best route is to leave the suffix .jpg even if the encoding is PNG. The program will handle the PNG and use transparency but the file needs to be named .jpg as that is the name the program expects. Because there different locations the file is accessed from it's not as simple as telling it to look for .png if .jpg is not found in a single method.