fixed compiler warnings in ImageReader