class StoreImage implements ICachable<StoreImage> {

  public BufferedImage getImage() {
    BufferedImage image = null;
    ByteArrayInputStream stream = new ByteArrayInputStream(Base64.getDecoder().decode(data));
    try {
      image = ImageIO.read(stream);
    } catch (IOException ioException) {
      log.warn("An IOException occured while trying to read image from stream.", ioException);
    }
    return image;
  }

  public  StoreImage(final long id, BufferedImage image, ImageSize size);
  public  StoreImage(final long id, byte[] base64, ImageSize size);
  public  StoreImage(StoreImage image);

}