Migrated ImageServlet from assignment3, adapted it to work and uses it successfully