Developing a Brain-Computer Interface Based on Visual Imagery