public void deletePicturefromAlbum(String filePath){
		Picture picture = findById(filePath);
		if(picture != null){
			Album album = picture.getAlbum();
			if(album!=null){
				beginTransaction();
				List<? extends PictureI> pics = album.getPictures();
				pics.remove(picture);
				album.setPictures(pics);
				if(album.getPictures().isEmpty()){
					entityManager.remove(album);
				}
				entityManager.persist(album);
				commitTransaction();	
			}
		}
	}