Merged requested to merge 1468-image-size-tests into master
Unfortunately, we can't use Roboelectric for the tests, because they use a shadow BitmapFactory that behaves differently from the one on a real device. Therefore, the tests are in
androidTest and need to run on actual devices.
One more piece of #1468 (closed)