fix position for selection image. move some defines to the header file