Update routing
Added resizing functionality and database field for image extension