add upload restrictions & img handling

Also center popup dialogs