Fix for layouting code.
Added support for background images on buttons.