1. use rest framework. 2. save pic when submit a url