def edit(request, image_id):
    image = get_object_or_404(Image, pk=image_id)
    image_form = ImageForm(instance=image)
    return render(request, 'images/edit.html', {'image': image, 'image_form': image_form})
def edit(request, image_id):
    image = get_object_or_404(Image, pk=image_id)
    image_form = ImageForm(instance=image)
    return render(request, 'images/edit.html', {'image': image, 'image_form': image_form})