Fix bugs in ImageServices