A small utility function to quickly resize images for use in Android applications