added hooks for image uploads into user and admin routes