fix bitmap upside down problem