fix some problems
Redirect post update
Refactor ImageController