Implemented background rendering for the PanelDrawable class and changed
the way the sprite rectangles were being generated.