make serveImage a protected method