Make sure to obey padding in the non-centred direction
Only re-layout buttons when necessary
Fixed classpath bug in Android SDK 22

SDK classpath bug means libraries aren't included - adjusted classpath
to deal with this. See:
https://code.google.com/p/android/issues/detail?id=55304
Added support for getting image dimensions of resources