bmp image rotaion and flip