title: +imageResource from R.drawable causes IllegalArgumentException in Jetpack Compose
body: <p>I was testing out Jetpack Compose with a new empty JC activity called HomeActivity. I am trying to load a drawable resource into my code. This is my function:</p>
  
  <pre><code>@Composable
  fun home() {
      MaterialTheme(
          colors = colors,
          typography = typography
      ) {
          val menuIcon = +imageResource(R.drawable.ic_baseline_menu_24)
          val bottomActions = listOf&lt;Image&gt;()
          var (drawerState, onDrawerStateChangeListener) = +state { DrawerState.Closed }
  
          BottomDrawerLayout(drawerState = drawerState, onStateChange = onDrawerStateChangeListener, drawerContent = {
              Text(text = "Drawer")
          }) {
              Column(
                  crossAxisSize = LayoutSize.Expand
              ) {
                  BottomAppBar(
                      navigationIcon = {
                          drawerState = DrawerState.Opened
                          AppBarIcon(icon = menuIcon, onClick = {})
                      },
                      actionData = bottomActions,
                      action = {
                          AppBarIcon(icon = it, onClick = {})
                      }
                  )
              }
          }
      }
  }
  </code></pre>
  
  <p>According to the JC website, <code>+imageResource(R.drawable.xyz)</code> should load the resource as andX.ui <code>Image</code> object
  <code>imageResource</code> function returns <code>Effect&lt;Image&gt;</code>, it doesn't crash the app but I don't know how to resolve it to Image object needed for <code>AppBarIcon</code></p>
  
  <p>Some of the Logcat outputs:</p>
  
  <pre><code>
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.craftmyspace/com.craftmyspace.activities.HomeActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter bitmap
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
          ...os.ZygoteInit.main(ZygoteInit.java:858)
  
  
       Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter bitmap
          at androidx.ui.graphics.AndroidImage.&lt;init&gt;(Unknown Source:2)
          at androidx.ui.graphics.AndroidImageKt.imageFromResource(AndroidImage.kt:29)
          at androidx.ui.res.ImageResourcesKt$imageResource$1$1.invoke(ImageResources.kt:45)
          at androidx.ui.res.ImageResourcesKt$imageResource$1$1.invoke(Unknown Source:0)
          at androidx.compose.ComposerKt.remember(Composer.kt:1867)
          at androidx.compose.EffectsKt$memo$2.invoke(Effects.kt:287)
          at androidx.compose.EffectsKt$memo$2.invoke(Unknown Source:2)
          at androidx.compose.Effect.resolve(Effects.kt:106)
          at androidx.compose.Effect.resolve$default(Effects.kt:843)
          at androidx.compose.Effect.unaryPlus(Effects.kt:115)
          at androidx.ui.res.ImageResourcesKt$imageResource$1.invoke(ImageResources.kt:45)
          at androidx.ui.res.ImageResourcesKt$imageResource$1.invoke(Unknown Source:2)
          at androidx.compose.Effect.resolve(Effects.kt:106)
          at androidx.compose.Effect.resolve$default(Effects.kt:843)
          at androidx.compose.EffectsKt.unaryPlus(Effects.kt:841)
          at com.craftmyspace.activities.HomeActivityKt$home$1$1$1.invoke(HomeActivity.kt:66)
  </code></pre>
  
  <p>HomeActivity.kt:66 is this
  <code>val menuIcon = +imageResource(R.drawable.ic_baseline_menu_24)</code></p>