public boolean isPNG(String path) {
        int i = path.length() - 3;
        if (path.substring(i).equals("png") || path.substring(i).equals("PNG")) {
            return true;
        }
        return false;
    }