public static BufferedImage getImage(String str){
        File source = new File("res/" + str + ".png");
        BufferedImage in = null;
        try {
            in = ImageIO.read(source);

        } catch (IOException e) {
            e.printStackTrace();
        }
        return in;
    }