private List<PwaIcon> initializeIcons(BufferedImage baseImage, int bgColor) { for (PwaIcon icon : getIconTemplates(pwaConfiguration.getIconPath())) { // New image with wanted size icon.setImage(drawIconImage(baseImage, bgColor, icon)); // Store byte array and hashcode of image (GeneratedImage) icons.add(icon); } return icons; }