loaders: BMP: Use IO for saving.

Adds GP_IOWriteF() and converts BMP saver to it.

There is also new GP_WriteBMP() function that takes
opened IO instead of a path as a parameter.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>