def annotate_image(request, task_id, image_id):
    try:
        task = Task.objects.get(pk=task_id)
    except Task.DoesNotExist:
        return Http404('The Task does not exist')
    url = reverse(get_redirection(task), kwargs={'task_id': task.id, 'image_id': image_id})
    return redirect(((url + '?') + request.GET.urlencode()))
def annotate_image(request, task_id, image_id):
    try:
        task = Task.objects.get(pk=task_id)
    except Task.DoesNotExist:
        return Http404('The Task does not exist')
    url = reverse(get_redirection(task), kwargs={'task_id': task.id, 'image_id': image_id})
    return redirect(((url + '?') + request.GET.urlencode()))