Fixed method to get the size of a bitmap to do it differently.