public boolean clearImage() {
   canvas.loadImage(null);
   return true;
 }
 public boolean loadImage(InputStream inputStream) {
   canvas.loadImage(inputStream);
   return canvas.getError() == null;
 }