Don't append png extension if a filename has been specified