Fixed upload of too big images

Should fix #17