Fix bitmap resizing