implement CRUD for images