Implemented the saving of colors as the user drags on the image

Foreground colors are saved after the user presses 'f'.
Background colors are saved after the user presses 'b'.