add rec to mouseposition, and center rect in mouse position