fixing nil picture bug