moved image upload to a new controller