Set the extensions based on the ext attributes used rather than explicitly.
Draw the background first for animated drawable.