Resizes bmp image