added file upload for image detail view and thumbnail processing