library finally works and takes pictures and all