some picture upload fixes