Fixed image urls in PHP code, fixed registerpage and settingspage