Well from my knowledge with safe mode a couple things needs to happen
1. You must use GD
2. Forget about header includes and such is not going to happen with safe mode on.
3. Everytime a new user registers you must create there upload directory. This way they can upload.
It gets more complicated than this obviously but those are the basic things.