MSSImage: fix an error and code review