fixed picture loading and saving
fixed logging
added picture upload