Fixing crashing issues by removing some assumptions about how setImageDrawable should be called.