How can I square up a bitmap that has one end larger than the other?