fixed some mac UI stuff and image uploading