g2d.setColor(Color.BLACK);
g2d.setFont(largeFont);
g2d.drawString(title, SIDE_MARGIN + IMAGE_PAD + categoryImage.getWidth(), TOP_MARGIN + (int) titleRect.getHeight());
g2d.setFont(font);
g2d.drawString(description, SIDE_MARGIN + IMAGE_PAD + categoryImage.getWidth(), height - BOTTOM_MARGIN);
// Draw the image (the usable height starts right from the top)
int y = (height - BOTTOM_MARGIN - categoryImage.getHeight()) / 2 + TOP_MARGIN;
g2d.setComposite(AlphaComposite.SrcOver);
g2d.drawImage(categoryImage, SIDE_MARGIN, y, null);