Altered the inventory GUI drawing code to use defined constants instead of magic numbers.
Inventory size is now checked before drawing, and the background resized if needed.