remove directoryobserver, update imagestack with random functionality