Fix response HTTP code with 404 when no such image