build an api for images controller, start working on backbone (front-end)