Add method getBitmapSizes() for InputStream