fixed ruby code to reflect routing
fixed image upload