updated Imagereader component and servlet