Add drawable-to-bitmap convert function