Added support for dynamic button images