Simplified the way that the battery size was being changed in order to fix an issue with rendering in some environments, see #34.