Updating pictures and corresponding directories