Added missing conditional statement for .png.