replace image upload controller