use helper method to remove duplicate code, fix getBitmapScaledToContainer to not scale down too far and use getBitmapScaledExact as a suroutine
use helper method to remove duplicate code, fix getBitmapScaledToContainer to not scale down too far and use getBitmapScaledExact as a suroutine

dimagi/commcare-android,dimagi/commcare-android,dimagi/commcare-android,dimagi/commcare-android,dimagi/commcare-android,dimagi/commcare-android