supporting android-10 with screenshots. getSize was added in 13.

http://stackoverflow.com/a/10564149/725944