@SuppressWarnings("unchecked")
	public boolean removePhoto(String filename, String album) {
		if (GuiView.control.getCurrentUser().getAlbumList().get(album).getPhotoList().containsKey(filename)) {
			
			Iterator it = GuiView.control.getCurrentUser().getAlbumList().entrySet().iterator();
			while (it.hasNext()) {
				Map.Entry<String, Album> pairs = (Map.Entry<String, Album>) it.next();
				if (pairs.getValue().getPhotoList().containsKey(filename))
					pairs.getValue().getPhotoList().get(filename).removeAlbum(album);
			}
			
			GuiView.control.getCurrentUser().getAlbumList().get(album).deletePhoto(filename);
			return true;
		}
		else{
			return false;
		}
	}