refactor images route, send 503 if image is in progress