Implemented new config for uploads
Rewritten image resizing for new config
Rewritten client code for new config