move the 'closing' of resources to the finally block in the getBitmap(path) method + allow the MAX_IMAGE_SIZE to be provided via Intent.