Added support for creating images with R.drawable