A BMP image resising program in C