middle of fixing resize bitmap