public boolean resourceIsInUse(String resourceName) {
   for (BShapeModel shapeModel : shapeModels.values())
     if (shapeModel.getImageName().equals(resourceName)) return true;
   return false;
 }
 public void removeResource(String resourceName) {
   for (BShapeModel shapeModel : shapeModels.values())
     if (shapeModel.getImageName().equals(resourceName)) shapeModel.setImageName("");
   resources.remove(resourceName);
   resourceNames.remove(resourceName);
 }