Image upload works completly

When trying realy hard some bugs may appear.  I should really implement
some try cathes