Drawing background based on percentage