Shorten inventory screen rendering code by using a local function for handling the padding drawing