Added updating of count of pictures after adding