fixed npe if picture null