changed models and server to accomodate image upload