fix bug in ImageSelect.h by inline keyword